import request from '@/utils/request'
// 数据使用申请未办列表 //导出
export function getnolist(listquery) {
    return request({
        url: '/api/userprofile/getnolist',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: listquery
    })
}
export function getdolist(listquery) {
    return request({
        url: '/api/userprofile/getdolist',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: listquery
    })
}


export function register(form) {
    return request({
        url: '/api/userprofile/register',
        method: 'post',
        headers: {
            "Content-Type": "multipart/form-data"
        },
        data: form,
        transformRequest: [function (formDatas) {
            return formDatas;
        }],
    })
}
export function changeStatus(listquery) {
    return request({
        url: '/api/userprofile/changestatus',
        method: 'post',
        headers: {
            "Content-Type": "application/x-www-form-urlencoded"
        },
        params:
            listquery
    })
}
//指标成果信息汇总
export function achievementslistlook(listquery) {
    return request({
        url: '/api/village/achievementslistlook',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data:
            listquery
    })
}
//获取编制单位类型
export function getqualificationlist() {
    return request({
        url: '/api/userprofile/getqualificationlist',
        method: 'get',

    })
}
export function add(data) {
    return request({
        url: '/api/userprofile/addname',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: data,
    })
}
export function edit(data) {
    return request({
        url: '/api/userprofile/editname',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: data,
    })
}
export function del(id) {
    return request({
        url: '/api/userprofile/delname',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: id,
    })
}
export function delrecord(id) {
    return request({
        url: '/api/authorizerelation/del',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: id,
    })
}
//黑名单查询
export function getBlackList(listquery) {
    return request({
        url: '/api/blacklist/getlist',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data:
            listquery

    })
}
//黑名单新增
export function addBlack(data) {
    return request({
        url: '/api/blacklist/adds',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: data,
    })
}
//黑名单删除
export function delBlack(id) {
    return request({
        url: '/api/blacklist/del',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: id,
    })
}
//导入黑名单
//批量关联
export function addtos(listquery) {
    return request({
        url: '/api/blacklist/addtos',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: 
         listquery
    })
}
export function getcode(listquery) {
    return request({
        url: '/api/authorizerelation/getcode',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: 
         listquery
    })
}